package swing;

import javax.swing.*;
import java.awt.*;

public class Demo3 extends JFrame {
    public Demo3(){
        setBounds(300,300,1280,720);

        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Container c =getContentPane();
        JLabel a = new JLabel();
        Icon icon = new ImageIcon("src/util/zxc.png");
      //  JLabel logo = new JLabel("图书管理系统");
        //logo.setFont(new Font("宋体", Font.BOLD, 30));
    //    logo.setIcon(new ImageIcon(LoginView.class.getResource("/images/logo.png")));
      //  logo.setBounds(176, 45, 299, 69);
        //contentPane.add(logo);
        a.setIcon(icon);
        a.setBounds(176,45,299,69);
        a.setFont(new Font("隶书",Font.BOLD,33));
        a.setForeground(Color.blue);
        c.add(a);
        setVisible(true);

    }

    public static void main(String[] args) {
        new Demo3();
    }

}
